home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_03
/
kamradt
/
delay.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-07
|
718b
|
40 lines
class BMOJoin;
class BMOIteratorImp {
public:
BMOIteratorImp()
{
itsJoinPtr = NULL;
}
~BMOIteratorImp()
{
delete itsJoinPtr;
}
int Search(char *str)
{
return
GetJoinPointer()->Search(str);
}
void Disconnect()
{
delete itsJoinPtr;
itsJoinPtr = NULL;
}
private:
// this is actually split apart
// (see Figure 4.)
BMOJoin *GetJoinPointer()
{
if(itsJoinPtr)
return itsJoinPtr;
itsJoinPtr = new
BMOJoin(itsStoredParameters);
if(itsJoinPtr == NULL)
// for now throw is just an inline
// for exit()
throw(ErrNoMem);
return itsJoinPtr;
}
};